﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WA.Core.DomainModel;
using WA.Core.DaoInterfaces;

namespace WA.Data
{
    public class InvoiceDao:BaseDao<Invoice,int>,IInvoiceDao
    {
        public override Invoice GetById(int id)
        {
            var result=(from i in db.Invoices
                       where i.InvoiceID==id
                       select i).First();
            return result;
        }        
    }
}
